\documentclass{article}

\usepackage{pgfplots}

\pgfplotsset{compat=1.14}

% \usetikzlibrary{}
% \usepgfplotslibrary{}

\begin{document}

\begin{tikzpicture}
%\tracingcommands=2\tracingmacros=2
	\begin{axis}[
		colorbar,
		colormap={my map}{
			color(0pt)=(red)
			color(10pt)=(blue)
			color(100pt)=(green)
			color(101pt)=(black)
			color(110pt)=(yellow)
		},
		colormap access=piecewise constant,
	]
	\addplot3[surf,shader=interp,samples=5] {x*y};	
	\end{axis}
\end{tikzpicture}
\end{document}

